<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <head>
        <title>TODO supply a title</title>
    </head>
    <f:metadata>
        <f:viewParam id="uuid" name="uuid" value="#{subjectThread.currentSubjectUuid}" required="true">
        </f:viewParam>
    </f:metadata>
    <f:event type="preRenderView" listener="#{subjectThread.initNewThread()}" />
    <body>
        <h:form>
            <h:panelGrid columns="2" border="1">
                <h:outputLabel value="Entrez le titre de votre sujet : "/>
                <h:inputText value="#{subjectThread.newThread.title}"/>
                
                <h:outputLabel value="Entrez votre message : "/>
                <h:inputTextarea value="#{subjectThread.newReply.content}"/>
                <h:commandButton value="Créer" action="#{subjectThread.addThread()}" />
            </h:panelGrid>
        </h:form>
    </body>
</html>
